module Format
  STRING_REGEX = Regexp.new(/^[a-zA-Z0-9\-_]+$/).freeze
  PHONE_REGEX  = Regexp.new(/^[\(\)0-9\- \+\.]{9,16}$/).freeze
  EMAIL_REGEX  = Regexp.new(/^([a-zA-Z0-9&_?\/`!|#*$^%=~{}+'-]+|"([\x00-\x0C\x0E-\x21\x23-\x5B\x5D-\x7F]|\\[\x00-\x7F])*")(\.([a-zA-Z0-9&_?\/`!|#*$^%=~{}+'-]+|"([\x00-x0C\x0E-\x21\x23-\x5B\x5D-\x7F]|\\[\x00-\x7F])*"))*@([a-zA-Z0-9&_?\/`!|#*$^%=~{}+'-]+|\[([\x00-\x0C\x0E-\x5A\x5E-\x7F]|\\[\x00-\x7F])*\])(\.([a-zA-Z0-9&_?\/`!|#*$^%=~{}+'-]+|\[([\x00-\x0C\x0E-\x5A\x5E-\x7F]|\\[\x00-\x7F])*\]))*$/).freeze
  ZIP_REGEX    = Regexp.new(/^[0-9 ]{5,6}$/).freeze
  URL_REGEX    = Regexp.new(/^[a-zA-Z0-9_\-\/]{1,}$/).freeze
  ICO_REGEX    = Regexp.new(/^[0-9]{8}$/).freeze
end